﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
public partial class Manage_MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            admin_name.Text = HttpContext.Current.User.Identity.Name;
        }
    }
    //protected void to_out_Click(object sender, EventArgs e)
    //{
    //    FormsAuthentication.SignOut();
    //    Session.Abandon();
    //    HttpCookie cookie1 = new HttpCookie(FormsAuthentication.FormsCookieName, "");
    //    cookie1.Expires = DateTime.Now.AddYears(-1);
    //    Response.Cookies.Add(cookie1);
    //    FormsAuthentication.RedirectToLoginPage();
    //}
    /// <summary>
    /// 当前所在位置
    /// </summary>
    public string WebPath
    {
        get { return this.TheWebPath.Text; }
        set { this.TheWebPath.Text = value; }
    }
}
